<!--
 * @Author: error: git config user.name && git config user.email & please set dead value or install git
 * @Date: 2022-12-28 22:27:40
 * @LastEditors: error: git config user.name && git config user.email & please set dead value or install git
 * @LastEditTime: 2022-12-28 23:25:38
 * @FilePath: \html学习\vue-test\vue-history\src\components\PageA.vue
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
<template>
    <h1>B</h1>
    <RouterLink to="/pageA">点我到A</RouterLink>
</template>
<script setup lang="ts">
import { useRoute } from 'vue-router';
import { onMounted } from 'vue';
const route = useRoute();
onMounted(() => {
    console.log(route.query); //1
})
</script>